// hud / ui
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float4 BufferCamera[27];
//   float4 BufferObject[8];
//   float4 BufferSimple[3];
//   float4 BufferTexture[6];
//
//
// Registers:
//
//   Name          Reg   Size
//   ------------- ----- ----
//   BufferCamera  c0       4
//   BufferObject  c4       3
//   BufferTexture c7       2
//   BufferSimple  c9       1
//

    vs_3_0
    def c10, 1, 0, 0, 0
//def c255, 0, 0, 0, 0
def c100, 0, 0, 0, 0
def c242, 39.9, 42.4, 0, 0
def c243, 0, 0, 0, 0
def c244, 0, 0, 0, 0
def c245, 0, 0, 82.30, 82.31
def c246, 0, 0, 0, 0
def c247, 24.5, 0.368, 0.0625, 1 //24.5
def c248, 12.25, 0, 0.0245, 2
dcl_2d s0
    dcl_position v0
    dcl_texcoord v1
    dcl_color v2
    dcl_position o0
    dcl_color o1
    dcl_texcoord o2.xy
    mul o1, c9, v2
    mul r0, c7, v1.xxyy
    add r0.xy, r0.zwzw, r0
    add o2.xy, r0, c8
    mad r0, v0.xyzx, c10.xxxy, c10.yyyx
    dp4 r1.x, r0, c5
    mul r1, r1.x, c1
    dp4 r2.x, r0, c4
    dp4 r0.x, r0, c6
    mad r1, r2.x, c0, r1
    mad r0, r0.x, c2, r1
    add r10, r0, c3
mov r11, r10
mov r12, r10
texldl r24, c247.z, s0
mov r25, r24
mov r15, c219

if_eq r15.z, c100.x
	mov r19.x, c247.x
else
	mov r19.x, c100.x
endif

add r24.y, r11.w, -r24.y
mad r11.x, r24.x, -r24.y, r11.x
mad r10.x, r25.x, r19.x, r11.x


//Quit Game yellow pop-up text
if_gt r10.z, c242.x
if_lt r10.z, c242.y
mov r12, r10
	//mov r12, c100
endif
endif



//icons on left side of screen
if_gt r10.z, c245.z
if_lt r10.z, c245.w
mul r18.x, r19.x, c248.w
//mad r20.x, r25.x, r18.x, r11.x
//mov r12, r20
	//mov r12, c100
endif
endif



//text-- was screen depth at first
if_eq r10.w, c10.x
mul r18.x, r19.x, c248.z
mad r10.x, r25.x, r18.x, r10.x
endif

mov o0, r12

// approximately 12 instruction slots used
 